package org.snia.cdmi;

public interface ErrorCodes {

	/*********** 400—Bad Request Server ***************/
	final static String BadDigest = "The Content-MD5 you specified did not match what we received.";
	final static String InvalidBucketName = "The specified bucket is not valid.";
	final static String InvalidArgument = "Invalid argument.Please check argument.";
	final static String InvalidToken = "The provided token is malformed or otherwise invalid.";
	final static String InvalidObjectURI = "The requested object URI contains illegal characters or too long.";
	final static String UnsupportedAcl = "The ACL you specified is not supported. For more information about the ACLs, see Access Control in the Developer's Guide.";
	final static String InvaildOffset = "The offset of requested object is invalid.";
	final static String ErrorPermission = "The Request permission type is wrong.";
	final static String InvaildMedadata = "The requested metadata contains illegal characters or too long.";
	final static String InvaildACLContent = "The content of ACL is invalid.";
	final static String NoSourceObject = "The source object for copying or moving requested does not exist.";
	final static String ExpiredToken = "The provided token has expired.";
	final static String CredentialsNotSupported = "This request does not support credentials.";
	final static String IncompleteBody = "You did not provide the number of bytes specified by the Content-Length HTTP header.";
	final static String DataTooLarge = "Post or put data exceeds the maximum allowed size.";
	final static String IncorrectNumberOfFilesInPostRequest = "POST requires exactly one file upload per request.";
	final static String MissingRequestBodyError = "This happens when the user sends an empty XML document as a request.";
	final static String RequestIsNotMultiPartContent = "Bucket POST must be of the enclosure-type multipart/form-data.";
	final static String TooManyBuckets = "You have attempted to create more buckets than allowed.";
	
	/*********** 400—Bad Request Client ***************/
	final static String RequestTimeout = "Your socket connection to the server was not read from or written to within the timeout period.";
 
	/*********** 403—Forbidden ***************/
	final static String AccessDenied = "Access denied.";
	final static String AccountProblem = "There is a problem with your account that prevents the operation from completing successfully. Please contact customer service.";
	final static String InsufficientQuota = "The user does not have enough quota to complete this operation.";
	final static String InvalidSecurity = "The provided security credentials are not valid.";
	final static String InvalidAccessKeyId = "The User Id you provided does not exist in our records.";
	final static String ExpiredURL = "The URL of public link had Expired";
	final static String NotSignedUp = "Your acl account is not signed up for this service.";
	
	/*********** 404—Not Found Server *****************/
	final static String NoSuchContainer = "The Container does not exist.";
	final static String NoSuchObject = "The Object does not exist.";
	
	/*********** 405—Method Not Allowed *****************/
	final static String MethodNotAllowed = "The specified method is not allowed against this resource.";
	
	/*********** 409—Conflict *****************/
	/**
	 * 当容器状态为正在迁移或正在删除状态，操作将是不能生效的
	 */
	final static String OperationAborted = "A conflicting conditional operation is currently in progress against this resource. Please try again.";
	final static String ContainerNotEmpty = "The Container you tried to delete is not empty.";
	final static String ContainerAlreadyExists = "The requested container name is invalid. The name of container already exists in the system.Please select a different name and tries again.";
	
	/*********** 411—Length Required *****************/
	final static String MissingContentLength = "You must provide the Content-Length HTTP header.";
	
	/*********** 500—Internal Server Error *****************/
	final static String InternalError = "We encountered an internal error. Please try again.";
	
	/*********** 501—Not Implemented *****************/
	final static String NotImplemented = "A header you provided implies functionality that is not implemented.";
	
	/*********** 503—Service Unavailable *****************/
	final static String SlowDown = "Please reduce your request rate.";
}
